package com.zzb.projectfactory.controller.admin.interceptor;

import com.zzb.projectfactory.controller.interceptor.AbstractWebInterceptor;
import org.springframework.stereotype.Component;

/**
 * 管理后台拦截器
 * Created by zhangzhenbin on 17-2-22.
 */
@Component
public class WebAdminInterceptor extends AbstractWebInterceptor {
    private static String redirectUrl = "/login";
    private static String [] urlPattern = new String[]{
            "/admin/*",
            "/admin",
    };
    @Override
    public String[] getUrlPattern() {
        return urlPattern;
    }

    @Override
    public String getRedirectUrl() {
        return redirectUrl;
    }
}
